import Vue from "vue";
import VueRouter, {RouteConfig} from "vue-router";
import NotFound from "@/components/NotFound.vue";
import Details from '@/components/Details.vue';
import MakeRecord from '@/components/MakeRecord/MakeRecord.vue';
import Statistic from '@/components/Statistic.vue';
import Account from '@/components/Account.vue';

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    redirect: '/details'
  },
  {
    path: "/details",
    component: Details
  },
  {
    path: "/statistic",
    component: Statistic
  },
  {
    path: "/account",
    component: Account
  },
  {
    path: "/details/make_record",
    component: MakeRecord
  },
  {
    path: "*",
    component: NotFound
  }
];

const router = new VueRouter({
  routes
});

export default router;
